package com.mlnx.ui.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.mlnx.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@ApiModel("用户角色关系表")
@Accessors(chain = true)
@TableName("t_user_role")
public class UserRole extends BaseEntity {

    @TableId(type = IdType.AUTO)
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("角色ID")
    private Integer roleId;

    @ApiModelProperty("用户ID")
    private Integer userId;
}
